﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Liger.Web.UI
{
    public class GridSortingSettings
    {
        public GridSortingSettings()
        {
            this.EnabledSort = true;
        }

        public bool Enabled
        {
            get
            {
                return EnabledSort.HasValue && EnabledSort.Value;
            }
            set
            {
                EnabledSort = value;
            }
        } 

        /// <summary>
        /// 是否允许排序
        /// </summary>
        public bool? EnabledSort
        {
            get;
            set;
        }
         
    }
}
